from django.urls import path
from .import views

app_name='blog'

urlpatterns=[
    path('',views.post_list,name='post_list'),
    path('<int:year>/<int:month>/<int:day>/<slug:post>/',views.post_detail,name='post_detail'),
    path('tag/<slug:tag_slug>/', views.post_list,name='post_list_by_tag'),
    path('<int:post_id>/share/', views.post_share,name='post_share'),
    path('search/',views.post_search,name='post_search')#加关于文章搜索的路由
]